//
//  JLProduct.m
//  JL网易彩票progress
//
//  Created by sunjinliang on 15/11/11.
//  Copyright © 2015年 sunjinliang. All rights reserved.
//

#import "JLProduct.h"

@implementation JLProduct
-(instancetype)initWithDict:(NSDictionary * )dict{
    if (self==[super init]) {
        self.title=dict[@"title"];
        self.ID=dict[@"id"];
        self.url=dict[@"url"];
        self.icon=dict[@"icon"];
        self.customUrl=dict[@"customUrl"];
    }
    return self;
}
+(instancetype)productWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}
-(void)setIcon:(NSString *)icon{
    _icon=[UIImage imageNamed:icon];
}
@end
